// pages/paysuccess/paysuccess.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    ordernum:'',
    realname:'',
    mobile:'',
    address:'',
    money:0
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    this.setData({ ordernum: options.ordernum, realname: options.realname, mobile: options.mobile, address: options.address, money: parseFloat(options.money).toFixed(2)});
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
  
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  
  },

  openProduct: function(){
    wx.navigateBack({
      delta: 3
    })
  }, 
  openMyOrder: function () {
    wx.navigateBack({
      delta: 3
    })
    setTimeout(function(){
      wx.navigateTo({
        url: '/pages/myorder/myorder?state=-1'
      })
    },500);
    
  }
})